"use strict";
cc._RF.push(module, '3f483JcIlVNib03guB7X1Lu', 'moneygiftlayout');
// Script/moneygiftlayout.js

"use strict";

var _allVariable = require("./allVariable");

var _allVariable2 = _interopRequireDefault(_allVariable);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

cc.Class({
    extends: cc.Component,

    properties: {
        giftFrameArray: [cc.Vec2]
    },

    // onLoad () {},

    start: function start() {},
    init: function init(mousesNum, type) {

        this.node.active = true;

        this.node.getChildByName("moneyNumber").getComponent(cc.Label).string = "+" + _allVariable2.default.addMoneyNum / 100;

        switch (type) {
            case 0:
                this.node.x = this.giftFrameArray[mousesNum].x;
                this.node.y = this.giftFrameArray[mousesNum].y;
                break;

            case 1:

                this.node.x = this.giftFrameArray[mousesNum].x;
                this.node.y = this.giftFrameArray[mousesNum].y;
                break;

            case 2:
                this.node.x = this.giftFrameArray[mousesNum].x;
                this.node.y = this.giftFrameArray[mousesNum].y;
                break;

            case 3:
                this.node.x = this.giftFrameArray[mousesNum].x;
                this.node.y = this.giftFrameArray[mousesNum].y;
                break;

            case 4:
                this.node.x = this.giftFrameArray[mousesNum].x;
                this.node.y = this.giftFrameArray[mousesNum].y;
                break;

            case 5:
                this.node.x = this.giftFrameArray[mousesNum].x;
                this.node.y = this.giftFrameArray[mousesNum].y;
                break;

            case 6:
                this.node.x = this.giftFrameArray[mousesNum].x;
                this.node.y = this.giftFrameArray[mousesNum].y;
                break;

            default:
                break;
        }
    }
    // update (dt) {},

});

cc._RF.pop();